package com.wh.custom.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.time.LocalDateTime;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;

/**
 * 实体类：
 */
@Data
@Accessors(chain = true)
public class CustomSalesmancustom implements Serializable {


    @Id
    private Integer id;
    @Excel(name = "公司名称", orderNum = "1", width = 30)
    private String companyName;  //公司名
    @Excel(name = "客户姓名", orderNum = "2", width = 30)
    private String customerName; //客户名
    @Excel(name = "累计成交次数", orderNum = "3", width = 30)
    private Integer totalDealCount; //累计成交次数
    @Excel(name = "累计金额", orderNum = "4", width = 30)
    private BigDecimal totalAmount;  //累计金额
    @Excel(name = "累计下单产品数量", orderNum = "5", width = 30)
    private Integer orderProductCount;  //累计下单产品数量
    @Excel(name = "手机号码", orderNum = "6", width = 30)
    private String phoneNumber;         //手机号
    //用于导出对应的数据
    @TableField(exist = false)
    @Excel(name = "客户销售渠道", orderNum = "7", width = 20)
    private String types;
    @TableField(exist = false)
    @Excel(name = "客户来源", orderNum = "8", width = 20)
    private String sources;
    @TableField(exist = false)
    @Excel(name = "客户销售渠道", orderNum = "9", width = 20)
    private String labels;
    @TableField(exist = false)
    @Excel(name = "所属业务员", orderNum = "10", width = 20)
    private String salesmans;
    private String area;    //所属地区
    @Excel(name = "地址", orderNum = "11", width = 30)
    private String address;             //地址

    private Integer TypeId;

    private Integer LabelId;

    private Integer SourceId;

    private Integer SalesmanId;
    @Excel(name = "客户微信", orderNum = "12", width = 30)
    private String customerWx;
    // @Excel(name = "备注", orderNum = "9", width = 30)
    private String Notes;

    @TableField(exist = false)
    private CustomCustomerlabel Label;        //客户级别
    @TableField(exist = false)
    private CustomCustomersource Source;      //客户来源
    @TableField(exist = false)
    private CustomCustomertype Type;        //客户销售渠道
    @TableField(exist = false)
    private CustomSalesman SalesMan;        //业务员
    @Excel(name = "最后成交时间", orderNum = "13", width = 30 ,format = "yyyy-MM-dd")
    private LocalDateTime lastDealTime; //最后成交时间
    @Excel(name = "更新时间", orderNum = "14", width = 30,format = "yyyy-MM-dd")
    private LocalDateTime updateTime;   //更新时间

    private String picture;
    //客户录入时间
    @TableField(exist = false)
    private LocalDateTime entryCustomerTime;
    //客户电话，能有多个
    @TableField(exist = false)
    private String telPhone;



}
